import request from '@/utils/request'

export default {
    // 校验原密码是否正确
    search(token, password) {
        // console.log(token, password, '原密码验证请求到达');
        return request({
            method: 'post',
            url: process.env.VUE_APP_BASE_API + '/user/pwd',
            data: {
                token, //令牌
                password //原密码
            }
        })
    },
    //修改密码
    putpas(pass) {
        // console.log(row, '修改密码成功');
        return request({
            method: 'put',
            url: process.env.VUE_APP_BASE_API + `/user/pw/pwd`,
            data: pass //新密码
        })
    },
}